﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XEvents.Library
{
    public class EventSessionTargetOptionCollection : List<EventSessionTargetOption>
    {
        public EventSessionTargetOptionCollection(IEnumerable<EventSessionTargetOption> esto)
            : base(esto)
        { }

        public EventSessionTargetOptionCollection()
        { }

        public EventSessionTargetOption this[string name]
        {
            get { return this.ToDictionary(n => n.Name, n => n)[name]; }
        }
    }
}
